package com.visionblue.business.ship.model.bean.response

/**
 * @author: xlh
 * @date: 2020-05-21 3:45 PM
 * @desc:  通用List Bean结构
 */
class ListBean<T>(
    val content: List<T>,
    val totalElements: Int,
    val pageNumber: Int,
    val pageSize: Int
) {

    fun hasPre() = pageNumber > 1

    fun hasNext() = pageNumber * pageSize < totalElements
}
